package  com.mdp.im.core.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.mdp.core.dao.annotation.TableIds;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * @author 唛盟开源 code-gen
 * @since 2024-8-13
 */
@Data
@TableName("im_group")
@Schema(description="群聊")
public class ImGroup  implements java.io.Serializable {
	
	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.ASSIGN_ID)
	
	@Schema(description="群组主键,主键")
	String id;

	
	@Schema(description="组名")
	String groupName;

	
	@Schema(description="组类别CSS客服CSW客服工作人员群组COMMON普通群聊")
	String categoryId;

	
	@Schema(description="创建人编号")
	String cuserid;

	
	@Schema(description="创建人姓名")
	String cusername;

	
	@Schema(description="创建日期")
	Date cdate;

	
	@Schema(description="业务状态0已提出1咨询中2已结束")
	String bizStatus;

	
	@Schema(description="群状态0初始1有效2已解散3全体禁言")
	String gstatus;

	
	@Schema(description="响应状态：I正在响应，S退出响应，O超时未响应，F结束响应")
	String resStatus;

	
	@Schema(description="门店编号")
	String locationId;

	
	@Schema(description="商户编号")
	String shopId;

	
	@Schema(description="归属机构号")
	String branchId;

	
	@Schema(description="在线人数")
	String onlineUsers;

	
	@Schema(description="归属部门")
	String deptid;

	
	@Schema(description="是否允许加入0不允许1允许")
	String allowJoin;

	
	@Schema(description="是否需要审核0不需要1需要")
	String needAudit;

	
	@Schema(description="群头像地址")
	String headimgurl;

	
	@Schema(description="下次允许发言时间")
	Date allowSpeechTime;

	
	@Schema(description="是否为私聊群0否1是两人人对话有第三人加入自动升级为普通群")
	String isPrichat;

	
	@Schema(description="最后活跃时间")
	Date lastActiveTime;

	
	@Schema(description="群备注")
	String remark;

	
	@Schema(description="群公告")
	String notice;

	
	@Schema(description="最后更新时间")
	Date lastUpdateTime;

	
	@Schema(description="关联的业务主键，比如某个项目小组编号")
	String bizId;

	
	@Schema(description="关联的业务父主键，比如项目编号")
	String bizPid;

	/**
	 *群组主键
	 **/
	public ImGroup(String id) {
		this.id = id;
	}
    
    /**
     * 群聊
     **/
	public ImGroup() {
	}

}